package cn.gene.timeyan.security.sso.security.service.user;


import cn.gene.timeyan.common.exception.TimeyanServiceException;
import cn.gene.timeyan.security.sso.pojo.dto.UserLoginDTO;

/**
 *用户登录
 *
 * @author LWG
 * @date 2022/7/22 15:02
 * @since 1.0.0@gene.cn
 */
public interface IUserSSOService {
    /**
     * 用户登录
     *
     * @param userLoginDTO
     * @return
     * @throws TimeyanServiceException
     */
    String doLogin(UserLoginDTO userLoginDTO) throws TimeyanServiceException;

    /**
     * token登录
     *
     * @param token
     * @throws TimeyanServiceException
     */
    void doLogout(String token) throws TimeyanServiceException;
}
